﻿using MiniFox.Data.Mapping;
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.Common;
using System.Linq;
using System.Linq.Expressions;
using System.Reflection;
using System.Text;

namespace MiniFox.Data
{
    /// <summary>
    /// 
    /// </summary>
    public interface IObjectQuery<TEntity> where TEntity : class 
    {
        /// <summary>
        /// 执行查询并返回对象
        /// </summary>
        /// <param name="expression">条件表达式</param>
        /// <returns></returns>
        TEntity Execute(Expression<Func<TEntity, bool>> expression);
    }

}
